<div class="zs-body" data-ng-init="formInit('knowledge_interlocution', {
		keyField:'id',
		randomFields:['id'],
		orderObject:{id:0} 
	}) && loadData('knowledge_interlocution');setConHei();">

    <div class="zs-map-tool">
		<div class="location">
			<a >首页</a>
			<i class="right-arr"></i>
			<a >知识库</a>
			<i class="right-arr"></i>
			<a >知识问答</a>
		</div>
		<div class="option">
			<input type="button" class="zs-btn orange" value="新建" 
				ng-click="addRow('knowledge_interlocution') && openWindow('edit');"/>
			<input type="button" class="zs-btn orange" value="编辑" 
				ng-click="editRow('knowledge_interlocution', knowledge_interlocution.sRows[0]) && openWindow('edit')"/>
			<input type="button" class="zs-btn orange" value="删除 " 
				ng-click="delEntitys('knowledge_interlocution')"/>
		</div>
	</div>
	
	<div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
        	<div class="tool item" style="margin-left:6px;">
                <span class="search-warpper">
                    <ag-Combotree class="zs-input" style="width:200px;height: 28px" 
                    	placeholder="所属站点"
						para="{ uDictionary:true,
								dictionary:'knowledge_site',
								pidField:'pid',
        						leafField:'leaf'}"
						ng-model="knowledge_interlocution.queryObject['siteId']"/>
                </span>
            </div>
        	<div class="tool item" style="margin-left:6px;">
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" placeholder="标题" class="zs-input" ng-model="knowledge_interlocution.queryObject['messageTitle:like']"/>
                </span>
            </div>
            <div class="operation item">
                <a class="ope-1" ng-click="loadData('knowledge_interlocution')"></a>
                <a class="ope-2"></a>
            </div>
            <div class="switch">
            </div>
        </div>
        <div class="zs-itab" style="margin:0px 10px">
			<div class="zs-itab-title">
				<ul class="idTabs">
					<li><a class="selected">所有</a></li>
					<li><a >已解决(0)</a></li>
					<li><a >未解决(0)</a></li>
				</ul>
			</div>
		</div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                    	<table>
			                <thead>
			                    <tr>
			                        <th>
			                        	<input id="allCheckbox" type="checkbox"
			                        		ng-click="selectAll('knowledge_interlocution','allCheckbox');">
			                        </th>
			                        <th>问题信息</th>
			                        <th>分类</th>
			                        <th>状态</th>
			                    </tr>
			                </thead>
			                <tbody>
			                    <tr ng-repeat="r in knowledge_interlocution.datas">
					                <td><input type="checkbox"
						                    ng-click="selectRow('knowledge_interlocution',r);"
						                    ng-model="r.selected" />
					                </td>
					                <td>
					                    <a ng-click="editRow('knowledge_interlocution',r) && openWindow('edit');">
					                        标题:<label ng-bind="r.title"></label><br/>
					                        内容:<label ng-bind="r.content"></label>
					                    </a>
					                </td>
					                <td>
					                    <a ng-click="editRow('knowledge_interlocution',r) && openWindow('edit');">
					                        [<label ng-bind="r.siteName"></label>]-[<label ng-bind="r.typeName"></label>]
					                    </a>
					                </td>
					                <td>
					                    <a ng-click="editRow('knowledge_interlocution',r) && openWindow('edit');">
					                        <label ng-bind="r.stateName"></label>
					                    </a>
					                </td>
					            </tr>
			                </tbody>
			            </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='knowledge_interlocution'></ag-Page>
                </div>
            </div>
        </div>
        <div ag-Window id="edit" title="留言编辑" width='770px' height='530px'>
	        <div class="zs-form-tab ibox">
	        	<form name="form" novalidate>
				    <table width="100%">
				        <tbody>
				        	<tr>
		                        <td class="text" width="20%">*所属分类</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="knowledge_interlocution.editRow.messageClass"
		                            class="zs-input" required></td>
		                        <td class="text" width="20%">*留言者</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="knowledge_interlocution.editRow.messagePerson"
		                            class="zs-input" required></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">姓名</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="knowledge_interlocution.editRow.messageName"
		                            class="zs-input" required></td>
		                        <td class="text" width="20%">*性别</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="knowledge_interlocution.editRow.messageSex"
		                            class="zs-input" required></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">QQ</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="knowledge_interlocution.editRow.messageQQ"
		                            class="zs-input" required></td>
		                        <td class="text" width="20%">电子邮箱</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="knowledge_interlocution.editRow.messageMail"
		                            class="zs-input" required></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">电话号码</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="knowledge_interlocution.editRow.messagePhone"
		                            class="zs-input" required></td>
		                        <td class="text" width="20%">手机号码</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="knowledge_interlocution.editRow.messageCellphone"
		                            class="zs-input" required></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">留言时间</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="knowledge_interlocution.editRow.messageTime"
		                            class="zs-input" required></td>
		                        <td class="text" width="20%">留言IP</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="knowledge_interlocution.editRow.messageIP"
		                            class="zs-input" required></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">留言国家</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="knowledge_interlocution.editRow.messageCountry"
		                            class="zs-input" required></td>
		                        <td class="text" width="20%">留言地区</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="knowledge_interlocution.editRow.messageArea"
		                            class="zs-input" required></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">标题</td>
		                        <td colspan="3" class="left" width="80%"><input type="text"
		                            class="zs-input" ng-model="knowledge_interlocution.editRow.messageTitle"></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">留言内容</td>
		                        <td colspan="3" class="left" width="80%"><input type="text"
		                            class="zs-input" ng-model="knowledge_interlocution.editRow.messageContent"></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">回复留言</td>
		                        <td colspan="3" class="left" width="80%"><input type="text"
		                            class="zs-input" ng-model="knowledge_interlocution.editRow.replyMessage"></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">回复者</td>
		                        <td colspan="3" class="left" width="80%"><input type="text"
		                            class="zs-input" ng-model="knowledge_interlocution.editRow.replyPerson"></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">回复时间</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="knowledge_interlocution.editRow.replyTime"
		                            class="zs-input" required></td>
		                        <td class="text" width="20%">回复IP</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="knowledge_interlocution.editRow.replyIP"
		                            class="zs-input" required></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">回复国家</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="knowledge_interlocution.editRow.replyCountry"
		                            class="zs-input" required></td>
		                        <td class="text" width="20%">回复地区</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="knowledge_interlocution.editRow.replyArear"
		                            class="zs-input" required></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">*回复状态</td>
		                        <td colspan="3" class="left" width="80%"><input type="text"
		                            class="zs-input" ng-model="knowledge_interlocution.editRow.replyState"></td>
		                    </tr>
				        </tbody>
				        <tfoot>
				            <tr>
				                <td colspan="4">
				                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
				                    	ng-click="formValidate(form) && save('knowledge_interlocution', knowledge_interlocution.editRow, saveCloseWindow)"/>
				                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
				                    	ng-click="closeWindow('edit')" />
				                </td>
				            </tr>
				        </tfoot>
				    </table>
				</form>
			</div>
	    </div>
	</div>
</div>